package gui;


import java.awt.BorderLayout;
import java.awt.Color;
import java.awt.Dimension;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import javax.swing.JButton;
import javax.swing.JLabel;
import javax.swing.JList;
import javax.swing.JPanel;
import javax.swing.JScrollPane;
import javax.swing.JTextField;
import javax.swing.border.Border;

public class PatientView extends JPanel{
	private JPanel buttonPanel, theBorderPanel;
	private ImagePanel patientPic;
	private JButton readMyRecord;
	

	public PatientView() {
		this.setLayout(new BorderLayout());
		initButtonPanel();
		patientPic=new ImagePanel("patient.jpg");
		initBorderPanel();
		this.add(patientPic, BorderLayout.EAST);
		this.add(buttonPanel, BorderLayout.WEST);
		this.add(theBorderPanel, BorderLayout.CENTER);
	}
	private void initBorderPanel() {
		theBorderPanel=new JPanel();
		theBorderPanel.setPreferredSize(new Dimension(10,200));
		theBorderPanel.setBackground(Color.BLACK);
	}
	public void addActionListeners(ActionListener a){
		readMyRecord.addActionListener(a);
	}

	private void initButtonPanel() {
		buttonPanel = new JPanel();
		readMyRecord=new JButton("Read my record");
		buttonPanel.add(readMyRecord);
		buttonPanel.setPreferredSize(new Dimension(100, 200));
		buttonPanel.setBackground(Color.BLACK);
	}
}
